<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ajax-xhr</title>
</head>

<body>
    <h1>这是Xhr</h1>


    <button onclick="testXhr()">点击</button>

    <script src="/static/js/common.js"></script>
    <script>
        // 通过内嵌script来间接调用外部js
        function testXhr() {
            var xhr = createXhr()
            console.log(xhr)
        }
    </script>
</body>

</html>